package cn.jzq.kotoba.modules.designpattern.decorator.demo;

import org.slf4j.Logger;
import org.slf4j.Marker;

/**
 * @author jzq
 * @date 2019/1/25 17:43
 */
public class DecoratorLogger implements ILog {
    private ILog log;

    public DecoratorLogger(ILog decorated) {
        this.log = decorated;
    }

    @Override
    public void info() {
        System.out.println("log decorator");
        log.info();
    }

    @Override
    public void error() {

    }
}
